home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 2: CDPD 1
/
Almathera Ten on Ten - Disc 2: CDPD 1.iso
/
2.1
/
s
/
dpat
< prev
next >
Wrap
AmigaDOS Script File
|
1995-03-13
|
709b
|
36 lines
.key com/a,pat/a,dir/a,opt1,opt2,opt3,opt4
.bra {
.ket }
; $VER: dpat 38.1 (11.10.91)
; Do wildcards for double arg commands
FailAt 21
Echo >ENV:qw{$$} "{dir}" FIRST 256
IF $qw{$$} EQ ":"
List >T:q{$$} {pat} LFORMAT "{com} *"%s%s*" *"{dir}%s*" {opt1} {opt2} {opt3} {opt4}"
Skip doit
EndIF
IF $qw{$$} EQ "/"
List >T:q{$$} {pat} LFORMAT "{com} *"%s%s*" *"{dir}%s*" {opt1} {opt2} {opt3} {opt4}"
Skip doit
EndIF
IF EXISTS {dir}
List >T:q{$$} {pat} LFORMAT "{com} *"%s%s*" *"{dir}/%s*" {opt1} {opt2} {opt3} {OPT4}"
Else
List >T:q{$$} {pat} LFORMAT "{com} *"%s%s*" *"{dir}*" {opt1} {opt2} {opt3} {OPT4}"
EndIF
Lab doit
IF NOT FAIL
Execute T:q{$$}
Else
Echo "{pat} not found"
EndIF
FailAt 10